import axios from '@/utils/request'

/**
 *  获取频道列表
 * @returns promise
 */
export function getChannelList () {
  return axios({
    method: 'GET',
    url: '/v1_0/user/channels'
  })
}

export function getArticleList (id, timestamp) {
  return axios({
    method: 'get',
    url: '/v1_1/articles',
    params: {
      channel_id: id,
      timestamp,
      with_top: 1
    }
  })
}
